<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTablePerformanceRatio extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('performance_ratio', function (Blueprint $table) {
            $table->increments('ratio_id');
			$table->integer('task_id')->comment('模板任务id');
			$table->integer('area_id')->comment('面积id');
			$table->decimal('percent', 5, 2)->comment('绩效比例');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('performance_ratio');
    }
}
